﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using HK2009.EntityQuery;

namespace HK2009.BusinessFacade
{
    public interface ISyTruckStatusHandler
    {
        /// <summary>
        /// 根据sql语句同参数获取列表
        /// </summary>
        /// <param name="sqlStr"></param>
        /// <param name="parms"></param>
        /// <returns></returns>
        DataTable GetList(string sqlStr, SqlParameter[] parms);

        /// <summary>
        /// 根据ID删除记录
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        bool DeleteByID(int pkid);


        /// <summary>
        /// 根据ID获取记录
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        Sy_TruckStatusQuery GetTruckStatusByID(int pkid);


        /// <summary>
        ///  更改记录
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        bool UpdateTruckStatus(Sy_TruckStatusQuery query);


        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        bool AddTruckStatus(Sy_TruckStatusQuery query);
    }
}
